home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
utility
/
cops605.zip
/
COPSINCE.DOC
< prev
next >
Wrap
Text File
|
1996-05-09
|
7KB
|
155 lines
COPSINCE.DOC 1 Revised: 05/09/96
This program looks for all files in a particular subdirectory and copies all new
ones to another subdirectory. It is typically used to make sure you have
backups of files while you're in the middle of doing something to them.
Features:
* You can copy all files updated since a given date or within the last
x-number of days.
* You can specify that newer files be copied regardless of date restriction
as long as the older version already exists in the subdirectory.
* You can define groups of file types, using DOS wildcard specifications
and copy only, say, text files or word processing files.
Specifying parameters:
Parameters for this program can be set in the following ways. The last setting
encountered always wins:
- Read from an *.INI file (see BRUCEINI.DOC file),
- Through the use of an environmental variable (SET COPSINCE=whatever), or
- From the command line (see "Syntax" below)
Defining your own file specifications:
You can create your own file specifications for copying purposes. Typically,
this is done using an *.INI file (see BRUCEINI.DOC file) but it can also be done
from the command line.
These definition specifications are made using the following syntax:
/DEF filetype=filespecs
For example, if you want to specify a new grouping "WP", you can define it to
include something like the following:
/DEF WP=*.WP *.WP5
Up to 20 file specifications can be made for a given group. Your COPSINCE.INI
file can contain up to 10 groupings. Once the group is defined, you can then
specify the name of the group on the command line and those are the files that
will be grabbed. By default, only two file types are defined and you can
override both of these if desired:
/DEF ALL=*.*
/DEF TEXT=*.BAS *.BAT *.BI *.C *.DOC *.H *.REF *.SAS *.SC *.TEK *.TXT
Win95 notice: As with most DOS-based utilities, this program doesn't understand
the weird subdirectories and filenames that are possible under Windows 95.
COPSINCE.DOC 2 Revised: 05/09/96
Syntax:
COPSINCE [ from_dir | from_dir\filespec [ to_dir ] ] [ /TO to_dir ]
[ mm/dd/yy | -n | /COPY mm/dd/yy | /COPY -n ] [ /REPLACE | /-REPLACE ]
[ /ALL | /TEXT | /filetype ] [ /DEF filetype=spec [ spec ]... ]
[ /BEEP | /-BEEP ] [ /Q ] [ /Iinitfile | /-I ] [ /? ]
where:
"from_dir" is the subdirectory name in which the source files are found. Can
provide drive and path information if desired. Defaults to the current
subdirectory. Alternatively, you can specify a filespec including wildcards to
limit the activity to one group of files. If you specify a filespec, it
overrides any /ALL, /TEXT, /filetype specifications.
"to_dir" or "/TO to_dir" is the destination to which to copy the files. Can
provide drive and path information if desired. Initially defaults to "/TO=A:\".
The "/TO" parameter itself is only required if a from_dir parameter is not
provided. The equal sign is optional.
"mm/dd/yy" or "/COPY mm/dd/yy" specifies the date from which you want all files
copied. Initially defaults to today's date.
"-n" or "/COPY -n" says to copy all files updated in the last n-number of days.
Initially defaults to "/COPY -0"; all files created today only.
"/REPLACE" copies anything in the source directory that's either not in the
destination directory or is newer than the version in the destination directory.
This is the default.
"/-REPLACE" reverses /REPLACE. Only files that aren't in the destination drive
will be copied.
"/ALL" says to take all files (initially, a file specification of *.*).
"/TEXT" restricts copying to only those files that are known to be straight
ASCII files. Initially, this is defined as any files which meet any of the
following file specifications:
*.BAS *.BAT *.BI *.C *.DOC *.H *.REF *.SAS *.SC *.TEK *.TXT
Initially, the routine grabs the /TEXT specification by default.
"/filetype" allows you to invoke your own file specification. You might want to
have something like /WP (for *.WP *.WP5 etc files) or whatever. You have to
define this filetype using a /DEF filetype statement.
"/DEF filetype=spec [ spec ]" allows you to create your own file specifications.
Typically, this would be specified in your initfile. See "Defining your own
file specifications" above.
COPSINCE.DOC 3 Revised: 05/09/96
"/BEEP" gives you a beep when the program finishes.
"/-BEEP reverses /BEEP and is the default.
"/Q" turns off the file-by-file status report.
"/Iinitfile" says to read an initialization file with the file name "initfile".
The file specification *must* contain a period. Initfiles are described in the
BRUCEINI.DOC file. Initially defaults to "/ICOPSINCE.INI".
"/-I" (or "/INULL") says to skip loading the initialization file.
"/?" or "/HELP" or "HELP" shows you the syntax for the command.
Author:
This program was written by Bruce Guthrie of Wayne Software. It is free for use
and redistribution provided relevant documentation is kept with the program, no
changes are made to the program or documentation, and it is not bundled with
commercial programs or charged for separately. People who need to bundle it in
for-sale packages must pay a $50 registration fee to "Wayne Software" at the
following address.
Additional information about this and other Wayne Software programs can be found
in the file BRUCEymm.DOC which should be included in the original ZIP file.
("ymm" is replaced by the last digit of the year and the two digit month of the
release. BRUCE512.DOC came out in December 1995. This same naming convention
is used in naming the ZIP file that this program was included in.) Comments and
suggestions can also be sent to:
Bruce Guthrie
Wayne Software
113 Sheffield St.
Silver Spring, MD 20910
fax: (301) 588-8986
e-mail: bguthrie@nmaa.org
http://hjs.geol.uib.no/guthrie/
See BRUCEymm.DOC file for additional contact information.
Foreign users: Please provide an Internet e-mail address in all correspondence.